﻿using NUnit.Framework;
using System.Collections.Generic;
namespace ThunkC_.Collections_
{
    /// <summary>
    /// IEqualityComparerFixture
    /// </summary>
    [TestFixture]
    public class IEqualityComparerFixture
    {
        [Test]
        public void Equals_Valid_EqualsTrue()
        {
            var comparer = (IEqualityComparer<string>)EqualityComparer<string>.Default;
            Assert.IsTrue(comparer.Equals("test", "test"));
        }

        [Test]
        public void GetHashCode_Valid_NotEqualZero()
        {
            var comparer = (IEqualityComparer<string>)EqualityComparer<string>.Default;
            Assert.AreNotEqual(0, comparer.GetHashCode("test"));
        }
    }
}
